<div class="boxLogin" id="formLogin" {if isset($smarty.get.err) && $smarty.get.err>0}style="display:none;"{/if}>
	<h2><a href="javascript:showRegister();"><img src="{$smarty.const.HOST_STATICS}img/btn/register.png" alt="{$smarty.const.DOMAIN} - Đăng ký thành viên" border="0" width="268" height="73" /></a></h2>
    <div class="loginItem">
        <form id="frmLogin" name="frmLogin" method="post" enctype="multipart/form-data" action="{$smarty.const.HOST_VFRIEND}index/login">
            <input type="hidden" name="ptypelogin" id="ptypelogin" value="0"/>
            <input type="hidden" name="ppassword_header" id="ppassword_header"/>
            <h3>Đăng nhập</h3>   
            <div class="userInput" id="secErrorMessage" style="display:none;">
            	<div class="errorMessage">&nbsp;</div>
            </div>            
            <div class="userInput">
                <label for="pemail_header">Địa chỉ E-mail:</label>
                <input type="text" value="{if isset($smarty.session.uemail)}{$smarty.session.uemail|escape}{elseif isset($ckEmail)&&$ckEmail!=''}{$ckEmail}{/if}" name="pemail_header" id="pemail_header" class="text" tabindex="1" />
            </div>
            <div class="userInput">
                <label for="ppassword_htype">Mật khẩu:</label>
                <input type="password" value="{if isset($smarty.cookies.LOGIN_PASS)&&$smarty.cookies.LOGIN_PASS!=''&&isset($ckRemember)&&$ckRemember==1}{$smarty.cookies.LOGIN_PASS|base64D|base64D}{/if}" name="ppassword_htype" id="ppassword_htype" class="text" tabindex="2"/>                         
            </div>
            <div class="userInput">
            	<div class="yourCheck">
                    <input type="checkbox" value="1" name="prememberme_header" id="prememberme_header" class="chk lFloat" tabindex="3" {if isset($ckRemember)&&$ckRemember==1}checked="checked"{/if} />
                    <label for="prememberme_header" class="chk lFloat">Ghi nhớ đăng nhập</label>
                </div>
                <input type="image" src="{$smarty.const.HOST_STATICS}img/btn/login.gif" class="rFloat" tabindex="4" />                
            </div>
            <div class="userInput">
                <label class="link">
                    <a href="{$smarty.const.LINK_INDEX_FORGET_PASSWORD}">Quên mật khẩu</a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;<a href="{$smarty.const.LINK_INDEX_GETCODE_ACCOUNT}">Nhận lại mã kích hoạt</a>
                </label>
            </div>
        </form>
    </div>
</div>